<%--
  Created by IntelliJ IDEA.
  User: 15c
  Date: 2017/5/31
  Time: 11:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="sf"%>
<html>
<head>
    <title>add</title>
</head>

<body >
<jsp:include page="head.jsp"/>
<div style="height: auto;width: 100%;text-align: center">
<div style="margin:5% auto">
  <h2>添加学生信息</h2>
  <h6 style="color: red">注：学号不可重复</h6>
  <sf:form action="${pageContext.request.contextPath}/students/add" method="post">
    <p style="font-weight: bold;">学号:<input type="text" name="sno"  style="margin-top: 1%;"/></p>
    <span style="color: #aa001b;border:none;font-weight: bold;">${type}</span>
    <p style="font-weight: bold">姓名:<input type="text" name="sname"  style="margin-top: 1%" /></p>
    <p style="font-weight: bold">性别:<input type="text" name="ssex"  style="margin-top: 1%" /></p>
    <p style="font-weight: bold">年龄:<input type="text" name="sage"  style="margin-top: 1%" /></p>
    <p style="font-weight: bold">系别:<input type="text" name="sdept"  style="margin-top: 1%" /></p>
    <p style="font-weight: bold">身份证号:<input type="text" name="sid" style="margin-top: 1%" /></p>
    <p style="font-weight: bold">家庭住址:<input type="text" name="saddress"  style="margin-top: 1%" /></p>
    <p style="font-weight: bold">联系电话:<input type="text" name="stelephonenum"  style="margin-top: 1%"/></p>
    <input type="submit" value="提交"  style="border:3px solid #ccc;background:#cccccc;margin-top: 1%">
    <a href="${pageContext.request.contextPath}/index"><input type="button" value="取消"  style="border:3px solid #ccc;background:#cccccc;margin-left: 2%;margin-top: 1%"></a>
  </sf:form>
</div>
</div>
</body>
</html>
